// test.worker.js
// Respond to message from parent thread
// self.addEventListener("message", event => console.log(event));
export function expensive(time) {
  let start = Date.now(),
    count = 0;
  while (Date.now() - start < time) count++;
  return count;
}
